import 'package:live_music/http/http_utils.dart';

class TopicService {
  static Future queryHotTopic(data) async {
    return await HttpUtils.postRequest(url: '/topic/queryHotTopic', data: data);
  }

  static Future queryTopic(data) async {
    return await HttpUtils.postRequest(url: '/topic/queryTopic', data: data);
  }

  static Future queryUserTopic(data) async {
    return await HttpUtils.postRequest(
        url: '/topic/queryUserTopic', data: data);
  }

  static Future queryTopicMoment(data) async {
    return await HttpUtils.postRequest(
        url: '/topic/queryTopicMoment', data: data);
  }

  static Future updateTopicCoverUrl(data) async {
    return await HttpUtils.postRequest(
        url: '/topic/updateTopicCoverUrl', data: data);
  }

  static Future getTopicDetail(data) async {
    return await HttpUtils.postRequest(
        url: '/topic/getTopicDetail', data: data);
  }
}
